 

#region Copyright Statement
//////////////////////////////////////////////
//	ORMAC
//  By: Ali Ghomi (2011)
//////////////////////////////////////////////
#endregion

#region using
using System;
using System.Collections.Generic;
using ORMAC;
using ORMAC.Attributes;
using System.Runtime.Serialization;
#endregion

namespace Test
{
	/// <summary>
	/// Auto generated class by ORMAC from CustomerCustomerDemo table
	/// </summary>
	[Table("CustomerCustomerDemo")]
	[DataContract]
	public class OCustomerCustomerDemo
	{
		/// <summary>
		/// Auto generated property by ORMAC from CustomerID column
		/// </summary>		
		[PrimaryKey]
		[Field("CustomerID")]
		[DataMember]
		public string CustomerID{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from CustomerTypeID column
		/// </summary>		
		[PrimaryKey]
		[Field("CustomerTypeID")]
		[DataMember]
		public string CustomerTypeID{
			get;
			set;
		}
		/// <summary>
		/// Auto generated class property by ORMAC using
		///CustomerTypeID as foreign key and CustomerTypeID as primary key in  CustomerDemographics table
		/// </summary>				
		[DataMember]
		[Join(ParentCol="CustomerTypeID",ChildCol="CustomerTypeID")]
		public OCustomerDemographics CustomerDemographics {
			get;
			set;
		}
		/// <summary>
		/// Auto generated class property by ORMAC using
		///CustomerID as foreign key and CustomerID as primary key in  Customers table
		/// </summary>				
		[DataMember]
		[Join(ParentCol="CustomerID",ChildCol="CustomerID")]
		public OCustomers Customers {
			get;
			set;
		}

	}
}
